package org.sdp.pearproject.dto.convert;

import org.sdp.pearproject.dao.domain.*;
import org.sdp.pearproject.dto.request.*;
import java.util.Date;

/**
 * @ClassName: ProjectForProjectFeaturesRequestConvert
 * @Description:
 * @Author: SDP
 * @Date: 2022-08-04
 * @Version: 1.0
 * Table: pear_project
 * Comment:
 * 项目表
 */
public class ProjectForProjectFeaturesRequestConvert extends BaseConvert {
    public static ProjectForProjectFeatures convert(ProjectForProjectFeaturesRequest request) throws Exception {
        ProjectForProjectFeatures daoRequest = new ProjectForProjectFeatures();
        copyProperties(request, daoRequest);

        daoRequest.setCode(daoRequest.getCode() == null ? null : daoRequest.getCode().trim());
        daoRequest.setName(daoRequest.getName() == null ? null : daoRequest.getName().trim());
        daoRequest.setDescription(daoRequest.getDescription() == null ? null : daoRequest.getDescription().trim());
        daoRequest.setCreateTime(daoRequest.getCreateTime() == null ? null : daoRequest.getCreateTime().trim());
        daoRequest.setUpdateTime(daoRequest.getUpdateTime() == null ? null : daoRequest.getUpdateTime().trim());
        daoRequest.setOrganizationCode(daoRequest.getOrganizationCode() == null ? null : daoRequest.getOrganizationCode().trim());
        daoRequest.setProjectCode(daoRequest.getProjectCode() == null ? null : daoRequest.getProjectCode().trim());

        return daoRequest;
    }
}
